<?php
/**
 * Leek - Zend Framework Components
 *
 * @category   Leek
 * @package    Leek_MultiCache
 * @author     Chris Jones <leeked@gmail.com>
 * @link       http://code.google.com/p/leek-zf-components/
 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @version    $Id: MultiDb.php 53 2009-06-04 15:24:26Z leeked $
 */

/**
 * Handles retrieving multiple cache instances
 *
 * @category   Leek
 * @package    Leek_MultiCache
 * @author     Chris Jones <leeked@gmail.com>
 * @link       http://code.google.com/p/leek-zf-components/
 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
 */
class Leek_MultiCache
{
    public static function getCache($key)
    {
        $multiCache = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('multicache');

        if (isset($multiCache[$key])) {
            return $multiCache[$key];
        }

        return false;
    }
}
